﻿using UnityEditor;
using UnityEngine;

namespace Mars.MeshUI
{
    [CustomEditor(typeof(MeshImg))]
    public class MeshImgEditor : Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            MeshImg img = target as MeshImg;

            if (img.ableSlid && Application.isPlaying)
            {
                img.fillAmount = EditorGUILayout.Slider(img.fillAmount, 0, 1);
            }
        }
    }
}